//package com.studerb.tests.service;
//
//import javax.swing.JOptionPane;
//
//import org.junit.BeforeClass;
//import org.junit.Test;
//
//import com.studerb.exceptions.ServiceException;
//import com.studerb.model.Server;
//import com.studerb.nntp.NntpConnection;
//import com.studerb.service.NntpConnectionPoolService;
//import com.studerb.service.ServerService;
//
//public class TestConnectionPoolServiceBadConnection {
//	
//	protected NntpConnectionPoolService connectionPoolService;
//	protected ServerService serverService;
//	
//	@BeforeClass
//	public static void printMessage(){
//		JOptionPane.showMessageDialog(null, "Make sure both good and bad server are inserted into db and good server has 9 connections."
//				+ System.getProperty("line.separtor") 
//				+ "Also make sure intenet connection is *OFF*");
//	}
//	
//	@Test(expected = ServiceException.class)
//	public void borrowObject() throws Exception {
//		Server server = serverService.getMasterServer();
//		NntpConnection conn = (NntpConnection) connectionPoolService.borrowObject(server);
//	}
//	
//
//}
